package leetCode;

import java.util.LinkedHashMap;
import java.util.Map;

public class Q146 {
    class LRUCache {
        public Map<Integer,Integer> map;

        public LRUCache(int capacity) {
            this.map = new LinkedHashMap<>(capacity);
        }

        public int get(int key) {
            return this.map.get(key);
        }

        public void put(int key, int value) {
            this.map.put(key,value);
        }
    }
}
